{include file="common/header.tpl"}   
    <div id="vfriendContainer">
    	{include file="user/navigation.tpl" step=3}
        <div id="mainContent2R">        	
            <div class="vfriendContainer2R">
                <div class="vfriendContent2R">
                    <div class="leftCol">                        	
                        <div class="boxEduAndWorking"> 
                            <div class="eduAndWorkingItem">
                                <form id="frmEduAndWorking" name="frmEduAndWorking" method="post" action="{$smarty.const.HOST_VFRIEND}user/save" enctype="application/x-www-form-urlencoded">
                                    <input type="hidden" name="ptype" value="{pow x=2 y=3}" />
                                    <div class="error" {if !isset($smarty.get.err)}style="display:none;"{/if}><div class="errorMessage">{if isset($smarty.get.err) && $smarty.get.err > 0}{$arrError[$smarty.get.err]}{/if}</div></div>
                                    <div class="eduAndWorkingItems"> 
                                        <div class="headerTitle"><h3>Trường học</h3></div>
                                        <div class="deviceCol">
                                            <div class="userInput">
                                                <label for="phschool">Trung học:</label>
                                                <input type="text" name="phschool" {if isset($arrParam)}value="{$arrParam.phschool|escape}"{/if} id="phschool" maxlength="255"/>
                                            </div>
                                            <div class="userInput">
                                            	<div class="phsCountry">
                                                    <label for="phscountry">Quốc gia:</label>
                                                    <select id="phscountry" name="phscountry" onchange="cboAddrEWork(this.value,'secHSProvince','phsprovince','phsaddr')" class="select" title="Chọn">
                                                        <option value="">Chọn</option>
                                                        {if isset($arrParam)}
                                                            {html_options options=$arrCountry selected=$arrParam.phscountry}
                                                        {else}
                                                            {html_options options=$arrCountry}
                                                        {/if}
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="userInput">
                                            	<div class="phsProvince" id="secHSProvince">
                                                    {if isset($arrParam)}
                                                        {if isset($arrParam.phsprovince)}
                                                            <label for="phsprovince">Tỉnh/thành:</label>
                                                            <select id="phsprovince" name="phsprovince" class="select" title="Chọn">
                                                                <option value="">Chọn</option>
                                                                {if isset($arrParam)}
                                                                    {html_options options=$arrProvince selected=$arrParam.phsprovince}
                                                                {else}
                                                                    {html_options options=$arrProvince}
                                                                {/if}
                                                            </select>
                                                        {else}
                                                            <label for="phsaddr">Địa chỉ:</label>
                                                            <input type="text" id="phsaddr" name="phsaddr" value="{$arrParam.phsaddr|escape}" />
                                                        {/if}
                                                    {else}
                                                        <label for="phsprovince">Tỉnh/thành:</label>
                                                        <select id="phsprovince" name="phsprovince" class="select" title="Chọn">
                                                            <option value="">Chọn</option>
                                                            {if isset($arrParam)}
                                                                {html_options options=$arrProvince selected=$arrParam.phsprovince}
                                                            {else}
                                                                {html_options options=$arrProvince}
                                                            {/if}
                                                        </select>
                                                    {/if}
                                              	</div>
                                            </div>
                                        </div>
                                        <div class="deviceCol">
                                            <div class="userInput">
                                                <label for="pcollege">Cao đẳng/Đại học:</label>
                                                <input type="text" name="pcollege" id="pcollege" {if isset($arrParam)}value="{$arrParam.pcollege|escape}"{/if} maxlength="255"/>
                                            </div>
                                            <div class="userInput">
                                            	<div class="pcCountry">
                                                    <label for="pccountry">Quốc gia:</label>
                                                    <select id="pccountry" name="pccountry" onchange="cboAddrEWork(this.value,'secCProvince','pcprovince','pcaddr')" title="Chọn" class="select">
                                                        <option value="">Chọn</option>
                                                        {if isset($arrParam)}
                                                            {html_options options=$arrCountry selected=$arrParam.pccountry}
                                                        {else}
                                                            {html_options options=$arrCountry}
                                                        {/if}
                                                    </select>
                                               	</div>
                                            </div>
                                            <div class="userInput">
                                            	<div class="pcProvince" id="secCProvince">
                                                    {if isset($arrParam)}
                                                        {if isset($arrParam.pcprovince)}
                                                            <label for="pcprovince">Tỉnh/thành:</label>
                                                            <select id="pcprovince" name="pcprovince" class="select" title="Chọn">
                                                                <option value="">Chọn</option>
                                                                {if isset($arrParam)}
                                                                    {html_options options=$arrProvince selected=$arrParam.pcprovince}
                                                                {else}
                                                                    {html_options options=$arrProvince}
                                                                {/if}
                                                            </select>
                                                        {else}
                                                            <label for="phsaddr">Địa chỉ:</label>
                                                            <input type="text" id="pcaddr" name="pcaddr" value="{$arrParam.pcaddr|escape}" />
                                                        {/if}
                                                    {else}
                                                        <label for="pcprovince">Tỉnh/thành:</label>
                                                        <select id="pcprovince" name="pcprovince" class="select" title="Chọn">
                                                            <option value="">Chọn</option>
                                                            {if isset($arrParam)}
                                                                {html_options options=$arrProvince selected=$arrParam.pcprovince}
                                                            {else}
                                                                {html_options options=$arrProvince}
                                                            {/if}
                                                        </select>
                                                    {/if} 
                                               	</div>                                              
                                            </div>
                                        </div>
                                    </div>
                                    <div class="eduAndWorkingItems">
                                        <div class="headerTitle"><h3>Công việc</h3></div>
                                        <div class="userInput">
                                            <label for="pemployer">Công ty:</label>
                                            <input type="text" name="pemployer" id="pemployer" {if isset($arrParam)}value="{$arrParam.pemployer|escape}"{/if} maxlength="255"/>
                                        </div>
                                        <div class="userInput">
                                        	<div class="peCountry">
                                                <label for="pecountry">Quốc gia:</label>
                                                <select id="pecountry" name="pecountry" onchange="cboAddrEWork(this.value,'secEProvince','peprovince','peaddr')" class="select" title="Chọn">
                                                    <option value="">Chọn</option>
                                                    {if isset($arrParam)}
                                                        {html_options options=$arrCountry selected=$arrParam.pecountry}
                                                    {else}
                                                        {html_options options=$arrCountry}
                                                    {/if}
                                                </select>
                                            </div>
                                        </div>
                                        <div class="userInput" id="secEProvince">
                                        	<div class="peProvince" id="secEProvince">
                                                {if isset($arrParam)}
                                                    {if isset($arrParam.peprovince)}
                                                        <label for="peprovince">Tỉnh/thành:</label>
                                                        <select id="peprovince" name="peprovince" class="select" title="Chọn">
                                                            <option value="">Chọn</option>
                                                            {if isset($arrParam)}
                                                                {html_options options=$arrProvince selected=$arrParam.peprovince}
                                                            {else}
                                                                {html_options options=$arrProvince}
                                                            {/if}
                                                        </select>
                                                    {else}
                                                        <label for="peaddr">Địa chỉ:</label>
                                                        <input type="text" id="peaddr" name="peaddr" value="{$arrParam.peaddr|escape}" />
                                                    {/if}
                                                {else}
                                                    <label for="peprovince">Tỉnh/thành:</label>
                                                    <select id="peprovince" name="peprovince" class="select" title="Chọn">
                                                        <option value="">Chọn</option>
                                                        {if isset($arrParam)}
                                                            {html_options options=$arrProvince selected=$arrParam.peprovince}
                                                        {else}
                                                            {html_options options=$arrProvince}
                                                        {/if}
                                                    </select>
                                                {/if} 
                                            </div>
                                        </div>
                                    </div>
                                
                                    <div class="secAction">
                                    	<input type="button" class="skip" onclick="document.location.href='{$smarty.const.LINK_USER_MFRIEND_STANDARD}'" />
                                        <input type="image" src="{$smarty.const.HOST_STATICS}img/btn/info-next.png"/>
                                        
                                    </div>                                    
                                </form>
                            </div> 
                        </div>
                    </div>
                    <div class="rightCol">
                        {include file="user/box-help.tpl" type=3}
                    </div>
               	</div>
            </div>
        </div>
    </div>
    {include file="common/footer.tpl"}